using System.Collections;
using System.Collections.Generic;
using Unity.Entities;
using Unity.Transforms;
using UnityEngine;

namespace LS
{
    public class RotateSpeedAuthoring : MonoBehaviour
    {
        public float speed = 1;

        private class EntityBaker : Baker<RotateSpeedAuthoring>
        {
            public override void Bake(RotateSpeedAuthoring authoring)
            {
                Entity ent = GetEntity(TransformUsageFlags.Dynamic);
                AddComponent(ent, new RotateSpeed() { value = authoring.speed });
            }
        }
    }

    public struct RotateSpeed : IComponentData
    {
        public float value;
    }
}
